package com.wq.search.dao;

import com.wq.search.entity.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ArticleDao extends ElasticsearchRepository<Article,String> {
    Page<Article> findByTitleOrContentLike(String title, String content,Pageable pageable);
}
